import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/userManagement/getList',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/userManagement/doEdit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/userManagement/doDelete',
    method: 'post',
    data,
  })
}
//获取用户列表
export function SelMiniUserList(params) {
  return request({
    url: '/SysUser/SelMiniUserList',
    method: 'get',
    params,
  })
}

//获取用户列表
export function SelMiniUserListN(params) {
  return request({
    url: '/SysUser/SelMiniUserListN',
    method: 'get',
    params,
  })
}

//删除用户
export function DelMiniUser(params) {
  return request({
    url: '/SysUser/DelMiniUser',
    method: 'get',
    params,
  })
}

//编辑用户信息
export function SetUserInfo(data) {
  return request({
    url: '/User/SetUserInfo',
    method: 'post',
    data,
  })
}
//后台添加用户
export function SysAddUserInfo(data) {
  return request({
    url: '/User/SysAddUserInfo',
    method: 'post',
    data,
  })
}

//获取部门列表
export function SelDpment(params) {
  return request({
    url: '/Sys/SelDpment',
    method: 'get',
    params,
  })
}

//添加部门
export function AddDpment(data) {
  return request({
    url: '/Sys/AddDpment',
    method: 'post',
    data,
  })
}

//编辑部门
export function SetDpment(data) {
  return request({
    url: '/Sys/SetDpment',
    method: 'post',
    data,
  })
}

//删除部门
export function DelDpment(params) {
  return request({
    url: '/Sys/DelDpment',
    method: 'get',
    params,
  })
}

//查询活动小组
export function SelActivitygroup(params) {
  return request({
    url: '/SysUser/SelActivitygroup',
    method: 'get',
    params,
  })
}

//添加活动小组
export function AddActivitygroup(data) {
  return request({
    url: '/SysUser/AddActivitygroup',
    method: 'post',
    data,
  })
}
//编辑活动小组
export function EditActivitygroup(data) {
  return request({
    url: '/SysUser/EditActivitygroup',
    method: 'post',
    data,
  })
}
//删除活动小组
export function DelActivitygroup(params) {
  return request({
    url: '/SysUser/DelActivitygroup',
    method: 'get',
    params,
  })
}

//修改用户积分
export function SetUserScore(data) {
  return request({
    url: '/Point/SetUserScore',
    method: 'post',
    data,
  })
}

//修改用户每周分享积分
export function SetUserWeekScore(data) {
  return request({
    url: '/Point/SetUserWeekScore',
    method: 'post',
    data,
  })
}
//用户讨论批量添加积分
export function GroupAddUserScore(data) {
  return request({
    url: '/Point/GroupAddUserScore',
    method: 'post',
    data,
  })
}

//选中优秀案例
export function SetSelectedGreatCase(data) {
  return request({
    url: '/Point/SetSelectedGreatCase',
    method: 'post',
    data,
  })
}

//选中优秀案例
export function SysSetUserAdmin(params) {
  return request({
    url: '/SysUser/SysSetUserAdmin',
    method: 'get',
    params,
  })
}

//查询文章类型列表
export function SelTextType(params) {
  return request({
    url: '/SysUser/SelTextType',
    method: 'get',
    params,
  })
} //删除文章列表
export function DelTextType(params) {
  return request({
    url: '/SysUser/DelTextType',
    method: 'get',
    params,
  })
} //编辑文章列表
export function SetTextType(data) {
  return request({
    url: '/SysUser/SetTextType',
    method: 'post',
    data,
  })
} //添加文章列表
export function AddTextType(data) {
  return request({
    url: '/SysUser/AddTextType',
    method: 'post',
    data,
  })
}

//查询小程序用户
export function SelMiniUser(params) {
  return request({
    url: '/SysUser/SelMiniUser',
    method: 'get',
    params,
  })
}

//获取区域学校列表
export function GetAreaSchoolList(params) {
  return request({
    url: '/User/GetAreaSchoolList',
    method: 'get',
    params,
  })
}

//获取区域学校列表
export function SelUserPaymentRecords(params) {
  return request({
    url: '/SysUser/SelUserPaymentRecords',
    method: 'get',
    params,
  })
}

//获取区域列表
export function GetAreaList(params) {
  return request({
    url: '/User/GetAreaList',
    method: 'get',
    params,
  })
}
